﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace NewProject.Models
{
    public class Post
    {
        public int PostID { get; set; }
        public int UserID { get; set; }
        public string UserName{get;set;}
        public string VideoLink { get; set; }
        public string ImageLink { get; set; }
        public string Title { get; set; }
        public string Album { get; set; }
        public string PostText { get; set; }

        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        [Display(Name = "Post Date")]
        public DateTime PostDate { get; set; }


        public virtual ICollection<Review> Reviews { get; set; }
       
    }
}